package RadianceM.DistributionSystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Schema(
        name = "Apartment",
        title = "楼栋表",
        description = ""
)
@TableName(value = "dorm_apartment")
public class Apartment {

    @Schema(title = "楼栋id", description = "")
    @TableId(value = "apartment_id")
    private Long id;

    @Schema(title = "模型映射id", description = "")
    @TableField(value = "object_map_id")
    private Long objectMapId;

    @Schema(title = "楼栋名称", description = "")
    @TableField(value = "apartment_name")
    private String name;

    @Schema(title = "楼栋介绍", description = "")
    @TableField(value = "apartment_intro")
    private String intro;
}
